{% if request.user.id %}
	<div style="text-align: left;">
		Bienvenido, {{request.user.first_name}} {{request.user.last_name}}<br><br>
		<a href="/{{settings.PROJECT_NAME}}/accounts/new-password/">Cambiar contraseña</a><br><br>
		<a class="boton_generico" href="/{{settings.PROJECT_NAME}}/accounts/logout_then_login/">Cerrar sesi&oacute;n</a>
	</div>
{% else %}
	<form action="/{{settings.PROJECT_NAME}}/accounts/login_short/" method="post" name="formUser">{% csrf_token %}
		<table class="form">
			{% for field, error in login_short_form.errors.items %}
				 {% if field = '__all__' %}
					{{error}}
				{% endif %}
			{% endfor %}
			{% for field in login_short_form %}
					<div class="fieldWrapper">
						<tr>
							<td >
								{{ field.label_tag }}: 
							</td>
							<td align="left">
								{{field.errors}}
								{{ field }}
							</td>
						<tr>
					</div>
				{% endfor %}
			<tr>
				<td align="center" rowspan="2">
					<input name="login" type="submit" class="boton_generico" value="Iniciar sesi&oacute;n" />
				</td>
				<td>
					<a href="/{{settings.PROJECT_NAME}}/accounts/password_reset/">Olvid&eacute; mi contrase&ntilde;a</a>
				</td>
			</tr>
			<tr>
				<td>
					<a href="/{{settings.PROJECT_NAME}}/accounts/create-user/">Crear una cuenta</a>
				</td>
			</tr>
		</table>
	</form>
{% endif %}
